<template>
  <div>
    <van-tabbar v-model="active" active-color="red" style="border-top:1px solid #bbb;width:375px">
      <van-tabbar-item icon="home-o" to="/index">首页</van-tabbar-item>
      <van-tabbar-item icon="apps-o" to="/category">分类</van-tabbar-item>
      <van-tabbar-item icon="shop-o" to="/goodsshop">值得买</van-tabbar-item>
      <van-tabbar-item icon="cart-o" to="/shopcart">购物车</van-tabbar-item>
      <van-tabbar-item icon="friends-o" to="/center">个人</van-tabbar-item>
    </van-tabbar>
  </div>
</template>
<script>
export default {
  // 组件名字
  name: "TabBars",
  // 状态数据
   data() {
    return {
      active: 0,
    };
  },
};
</script>
<style lang="less" scoped>
</style>